<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUnitXVipPackageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //单位绑定付费套餐
        Schema::create('unit_bind_vip_package',function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('unit_id')->nullable()->comment('单位id');
            $table->integer('vip_package_id')->nullable()->comment('套餐id');
            $table->timestamp('start_time')->nullable()->comment('开始时间');
            $table->timestamp('end_time')->nullable()->comment('结束时间');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
